﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            MessageBox.Show("来啦老妹");

        }

        private void Form2_MouseClick(object sender, MouseEventArgs e)
        {
            var res = MessageBox.Show("我们结婚吧！", "宝贝！", MessageBoxButtons.YesNo);
                if(res == DialogResult.Yes){
                
                    MessageBox.Show("嫁给我吧！");
                
                }
                else
                {
                
                    MessageBox.Show("我娶你啊！");
                
                }

           



        }


    }
}
